﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using AnQinFrameWorkAPI.Entity.BaseInfo.Entity;

namespace AnQinFrameWorkAPI.Entity.SystemCore.Entity;

/// <summary>
///     员工角色表模型
/// </summary>
[Table("StaffRole")]
public class StaffRoleModel
{
    #region 关联

    /// <summary>
    ///     员工表
    /// </summary>
    public virtual StaffModel Staff { get; set; }

    #endregion

    #region 字段

    /// <summary>
    ///     角色管理id（主键）
    /// </summary>
    [Key]
    [MaxLength(36)]
    public Guid Id { get; set; }

    /// <summary>
    ///     员工id（必填）
    /// </summary>
    [MaxLength(50)]
    public Guid StaffId { get; set; }

    /// <summary>
    ///     角色id（必填）
    /// </summary>
    [MaxLength(50)]
    public Guid RoleId { get; set; }

    #endregion
}